package com.just.fun.spi;

import java.util.Iterator;
import java.util.ServiceLoader;

public class SpiTest {
    public static void main(String[] args) {
        ServiceLoader<SpiService> loader=ServiceLoader.load(SpiService.class);
        for (SpiService next : loader) {
           next.execute();
        }
    }
}
